var mallinmall = 
{
	version : "1.0",
	topCode : '',
	leftCode : '',
	tabLinks : [
	            {group:'ssapps',id:'Tab01',label:'Top 관리', url:'/adminpoc/mallinmallSsMainTop/findMainTopList.omp?mallCd=MM000101'},
	            {group:'ssapps',id:'Tab02',label:'운영자 추천', url:'/adminpoc/mallinmallSsRecom/findMallRecommends.omp?mallCd=MM000101'},
	            {group:'ssapps',id:'Tab03',label:'모바일 배너관리', url:'/adminpoc/mallinmallSsMobileBnr/mblBnrList.omp?mallCd=MM000101'}
	            /** 주석 처리 2009.12.22 **/
	            //{group:'ssapps',id:'Tab04',label:'평점 Best', url:'/adminpoc/mallinmallSsAvgBest/findAvgBest.omp?mallCd=MM000101'},
	            //{group:'ssapps',id:'Tab05',label:'댓글 Best', url:'/adminpoc/mallinmallSsNotiBest/findNotiBest.omp?mallCd=MM000101'}
	            ],
	createTabLink : function(group, target){
		var htmls = "";
		$(mallinmall.tabLinks).each(function(i, data){
			if(data.group == group){
				var btnCls = (location.href.indexOf(data.url.substring(0, data.url.lastIndexOf('/'))) == -1) ? "button_51_01" : "button_62";
				htmls += "<input type='button' id=\""+data.id+"\" value=\""+data.label+"\" class='"+btnCls+"' style='width:100px; margin-right:5px;' onclick=\"mallinmall.goTabLink("+i+")\" />";
			}
		});
		$("#" + target).html(htmls);
	},
	goTabLink : function(tabIdx){
		location.href = mallinmall.tabLinks[tabIdx].url;
	}
};

var mallinmallLG = 
{
	version : "1.0",
	topCode : '',
	leftCode : '',  
	tabLinks : [
	            {group:'lgapps',id:'Tab01',label:'Top 관리', url:'/adminpoc/mallinmallLG/findMainTopList.omp?mallCd=MM000102'},
	            {group:'lgapps',id:'Tab02',label:'운영자 추천', url:'/adminpoc/mallinmallLG/findMallRecommends.omp?mallCd=MM000102'},
	            {group:'lgapps',id:'Tab03',label:'모바일 배너관리', url:'/adminpoc/mallinmallSsMobileBnr/mblBnrList.omp?mallCd=MM000102'}
	            ],
	createTabLinkLG : function(group, target){
		var htmls = "";
		$(mallinmallLG.tabLinks).each(function(i, data){
			if(data.group == group){
				var btnCls = (location.href.indexOf(data.url.substring(0, data.url.lastIndexOf('/'))) == -1) ? "button_51_01" : "button_62";
				htmls += "<input type='button' id=\""+data.id+"\" value=\""+data.label+"\" class='button_63_01' style='width:100px; margin-right:5px;' onclick=\"mallinmallLG.goTabLink("+i+")\" />";
			}
		});
		$("#" + target).html(htmls);
	},
	goTabLink : function(tabIdx){
		location.href = mallinmallLG.tabLinks[tabIdx].url;
	}
};